import { combineReducers } from 'redux'
import { connectRouter } from 'connected-react-router'
import signReducer from './signup'
import test from './test';
import productsReducer from './products';
import searchReducer from './search.reducer';
import filterReducer from './filter.reducer';
import productReducer from './product.reducer';

const createdRootReducer = (history) => combineReducers({
    test: test,
    router: connectRouter(history),
    signup: signReducer,
    products: productsReducer,
    searchReducer: searchReducer,
    filterReducer: filterReducer,
    productReducer: productReducer
})

export default createdRootReducer